tools: turbostat: Add checks for failure of fgets() and fscanf()
authorBen Hutchings <ben@decadent.org.uk>
Tue, 11 Sep 2018 02:07:28 +0000 (03:07 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 30 Dec 2018 09:04:03 +0000 (09:04 +0000)
commit1a2ea896c0f893fbeb01c3d70e1b233bf07f1c70
treeca9e1c1bbd44740e83388c0430068c80b9476745
parenta0f471d6a22836680312feb52c7642167e4cd361
tools: turbostat: Add checks for failure of fgets() and fscanf()

Most calls to fgets() and fscanf() are followed by error checks.
Add an exit-on-error in the remaining cases.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name tools-turbostat-Add-checks-for-failure-of-fgets-and-.patch
tools/power/x86/turbostat/turbostat.c